self.addEventListener('message', function(e) {
  	var url;
	var xhr;
	if(e.data=='Lotus')
  	{
 	url="https://graph.facebook.com/LotusF1Team";
 	xhr = new XMLHttpRequest();
    xhr.open('GET', url, false);
    xhr.send();
    json=eval("("+xhr.responseText+")");
    self.postMessage(json);
	}
	if(e.data=='McLaren')
	{
	url="https://graph.facebook.com/vodafonemclarenmercedes";
	xhr = new XMLHttpRequest();
    xhr.open('GET', url, false);
    xhr.send();
    json=eval("("+xhr.responseText+")");
    self.postMessage(json);
	}
    if(e.data=='Sauber')
    {
        url="https://graph.facebook.com/sauberf1team";
        xhr = new XMLHttpRequest();
        xhr.open('GET', url, false);
        xhr.send();
        json=eval("("+xhr.responseText+")");
        self.postMessage(json);
    }
}, false);

